package me.zhanshi123.lab4.service;

import me.zhanshi123.lab4.entity.AuthIdentity;
import me.zhanshi123.lab4.entity.User;

public interface IUserService {
    User getUser(String name);

    int addUser(String name, String password, String email, int group);

    int updateUser(User user);

    String updateSelf(AuthIdentity authIdentity, String email);

    String updateOther(AuthIdentity authIdentity, String user);

    String getInfo(AuthIdentity authIdentity);

    String getAll();

    boolean checkPassword(User user, String password);

    String add(AuthIdentity authIdentity, String name, String password, String email);

    String changePassword(AuthIdentity authIdentity, String name, String password);
}
